import { defineFakeRoute } from 'vite-plugin-fake-server/client';

export default defineFakeRoute([
  {
    url: '/api/vatinvoinceprintlog/form_data',
    method: 'get',
    response: () => {
      return {
        error: '',
        code: 0,
        data: [
          {
            id: 1,
            ares: '越城分局袍江支局1',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰1',
            created: '20240806',
            billmonth: '202408'
          },
          {
            id: 2,
            ares: '越城分局袍江支局2',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰2',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 3,
            ares: '越城分局袍江支局3',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰3',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 4,
            ares: '越城分局袍江支局4',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰4',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 5,
            ares: '越城分局袍江支局5',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰5',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 6,
            ares: '越城分局袍江支局6',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰6',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 7,
            ares: '越城分局袍江支局7',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰7',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 8,
            ares: '越城分局袍江支局8',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰8',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 9,
            ares: '越城分局袍江支局9',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰9',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 10,
            ares: '越城分局袍江支局10',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰10',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 11,
            ares: '越城分局袍江支局11',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰11',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 12,
            ares: '越城分局袍江支局12',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰12',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 13,
            ares: '越城分局袍江支局13',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰13',
            created: '20240806',
            billmonth: '202407'
          },
          {
            id: 14,
            ares: '越城分局袍江支局14',
            account: '2751025229992',
            printmonth: '202408',
            invoice: '100052025812',
            amount: '1053.00',
            printflag: '否',
            operator: '裘越峰14',
            created: '20240806',
            billmonth: '202407'
          },
        ],
      };
    },
  },
  {
    url: '/api/vatinvoinceprintlog/form_data_month',
    method: 'post',
    response: () => {
      return {
        error: '',
        code: 0,
        data: [
          {
            id: 1,
            ares: '越城分局袍江支局1',
            account: '2751003027413',
            printmonth: '202408',
            invoice: '100052028913',
            amount: '368',
            printflag: '否',
            operator: '裘越峰1',
            created: '20240806',
            billmonth: '202408'
          },
        ],
      };
    },
  },
],
);
